﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Globalization;

namespace ThePresenter.Windows
{
	/// <summary>
	/// Interaction logic for InputNameBox.xaml
	/// </summary>
	public partial class InputNameBox : Window
	{
		public String Username
		{
			get { 
				return this.usernameTextBox.Text; 
			}
			set {
				this.usernameTextBox.Text = value; 
			}
		}

		public InputNameBox()
		{
			InitializeComponent();
		}

		void okButton_Click(object sender, RoutedEventArgs e)
		{
			// Don't accept the dialog box if there is invalid data
			if (this.usernameTextBox.Text == String.Empty) return;

			// Dialog box accepted
			this.DialogResult = true;
		}
	}
}
